home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Conversion
/
Convert_PICT
/
Testing
/
hex_tests
/
rgn=clip.hex
< prev
next >
Wrap
Text File
|
1992-11-27
|
2KB
|
58 lines
% header
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
% end of app-specific header
00FF 0000 0000 00FF 00FF % pict size (bogus) and top left bottom right
11 01 % verson
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Test clip region:
% This takes the prototypical rectangle test, and
% puts a clipregion around it so not all of it should
% be visible.
% This should complement all the other tests using opcode 01 to put
% clips around the whole image
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define a clip region in the center area of the shapes. Show lwoer right of upper left
% rectangle, top right of lower left. But only one pixel edge of the two right rectangles.
%
01 000A 0030 0030 00A0 0081
30 0000 0000 00FF 00FF % draw bounding rect
02 AA AA AA AA AA AA AA AA % fill pat
09 FF FF FF FF FF FF FF FF % pn pat
0A AA 55 AA 55 AA 55 AA 55 % back pat
% draw lines along its four sides
20 0010 0000 0010 00FF
20 0000 0010 00FF 0010
20 0050 0000 0050 00FF
20 0000 0050 00FF 0050
20 0000 0080 00FF 0080
20 0000 00C0 00FF 00C0
20 0080 0000 0080 00FF
20 00C0 0000 00C0 00FF
% Frame a rectangle
30 0010 0010 0050 0050
% paint an adjacent one
31 0010 0080 0050 00C0
% try to invert the painted one (ha ha)
33 0010 0080 0050 00C0
% fill one below one
34 0080 0080 00C0 00C0
% erase a different one
32 0080 0010 00C0 0050
FF % end